import { ChannelConfig } from "./ChannelConfig";
import { GameConfig } from "./GameConfig";
import { PrivacyConfig } from "./PrivacyConfig";

export class Config {

    public static EnvironmentType = {
        Local: 0,
        Test: 1,
        Online: 2
    }

    public static environment: number = Config.EnvironmentType.Test;

    public static isConnectServer: boolean = false; //是否联网

    private static httpUrlConfigList: Array<string> = [
        "http://192.168.0.44:8230", // local
        "http://212.64.108.20:8230", // test
        "http://81.68.206.191:8230", // online
    ]

    public static getHttpUrl(): string {
        let url: string = this.httpUrlConfigList[this.environment];
        return url;
    }

    public static jsonConfig: Map<string, string> = new Map<string, string>()
        .set(PrivacyConfig.Config_Name, "./json/privacy.json")
        .set(ChannelConfig.Config_Name, "./json/channel.json")
        .set(GameConfig.Config_Name, "./json/game.json")



}